home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ttttppppuuuutttt((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ttttppppuuuutttt((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- ttttppppuuuutttt - initialize a terminal or query terminfo database
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ttttppppuuuutttt [----TTTT_t_y_p_e] _c_a_p_n_a_m_e [_p_a_r_m_s ... ]
- ttttppppuuuutttt [----TTTT_t_y_p_e] iiiinnnniiiitttt
- ttttppppuuuutttt [----TTTT_t_y_p_e] rrrreeeesssseeeetttt
- ttttppppuuuutttt [----TTTT_t_y_p_e] lllloooonnnnggggnnnnaaaammmmeeee
- ttttppppuuuutttt ----SSSS <<<<<<<<
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The ttttppppuuuutttt utility uses the tttteeeerrrrmmmmiiiinnnnffffoooo database to make the
- values of terminal-dependent capabilities and information
- available to the shell (see sssshhhh(1)), to initialize or reset
- the terminal, or return the long name of the requested
- terminal type. ttttppppuuuutttt outputs a string if the attribute
- (_c_a_pability _n_a_m_e) is of type string, or an integer if the
- attribute is of type integer. If the attribute is of type
- boolean, ttttppppuuuutttt simply sets the exit code (0000 for TRUE if the
- terminal has the capability, 1111 for FALSE if it does not),
- and produces no output. Before using a value returned on
- standard output, the user should test the exit code [$$$$????, see
- sssshhhh(1)] to be sure it is 0000. (See the EEEEXXXXIIIITTTT CCCCOOOODDDDEEEESSSS and
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS sections.) For a complete list of capabilities
- and the _c_a_p_n_a_m_e associated with each, see tttteeeerrrrmmmmiiiinnnnffffoooo(5).
-
- ----TTTT_t_y_p_e
- indicates the _t_y_p_e of terminal. Normally this option
- is unnecessary, because the default is taken from the
- environment variable TTTTEEEERRRRMMMM. If ----TTTT is specified, then
- the shell variables LLLLIIIINNNNEEEESSSS and CCCCOOOOLLLLUUUUMMMMNNNNSSSS will be
- ignored,and the operating system will not be queried
- for the actual screen size.
-
- _c_a_p_n_a_m_e
- indicates the attribute from the tttteeeerrrrmmmmiiiinnnnffffoooo database.
-
- _p_a_r_m_s
- If the attribute is a string that takes parameters, the
- arguments _p_a_r_m_s will be instantiated into the string.
- An all numeric argument will be passed to the attribute
- as a number.
-
- ----SSSS allows more than one capability per invocation of ttttppppuuuutttt.
- The capabilities must be passed to ttttppppuuuutttt from the
- standard input instead of from the command line (see
- example). Only one _c_a_p_n_a_m_e is allowed per line. The
- ----SSSS option changes the meaning of the 0000 and 1111 boolean
- and string exit codes (see the EXIT CODES section).
-
- iiiinnnniiiitttt If the tttteeeerrrrmmmmiiiinnnnffffoooo database is present and an entry for
- the user's terminal exists (see ----TTTT_t_y_p_e, above), the
-
-
-
- Page 1 (printed 5/12/99)
-
-
-
-
-
-
- ttttppppuuuutttt((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ttttppppuuuutttt((((1111))))
-
-
-
- following will occur: (1) if present, the terminal's
- initialization strings will be output (iiiissss1111, iiiissss2222, iiiissss3333,
- iiiiffff, iiiipppprrrroooogggg), (2) any delays (e.g., newline) specified in
- the entry will be set in the tty driver, (3) tabs
- expansion will be turned on or off according to the
- specification in the entry, and (4) if tabs are not
- expanded, standard tabs will be set (every 8 spaces).
- If an entry does not contain the information needed for
- any of the four above activities, that activity will
- silently be skipped.
-
- rrrreeeesssseeeetttt
- Instead of putting out initialization strings, the
- terminal's reset strings will be output if present
- (rrrrssss1111, rrrrssss2222, rrrrssss3333, rrrrffff). If the reset strings are not
- present, but initialization strings are, the
- initialization strings will be output. Otherwise,
- rrrreeeesssseeeetttt acts identically to iiiinnnniiiitttt.
-
- lllloooonnnnggggnnnnaaaammmmeeee
- If the tttteeeerrrrmmmmiiiinnnnffffoooo database is present and an entry for
- the user's terminal exists (see ----TTTT_t_y_p_e above), then the
- long name of the terminal will be put out. The long
- name is the last name in the first line of the
- terminal's description in the tttteeeerrrrmmmmiiiinnnnffffoooo database [see
- tttteeeerrrrmmmm(5)].
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- ttttppppuuuutttt iiiinnnniiiitttt
- Initialize the terminal according to the type of
- terminal in the environmental variable TTTTEEEERRRRMMMM. This
- command should be included in everyone's .profile after
- the environmental variable TTTTEEEERRRRMMMM has been exported, as
- illustrated on the pppprrrrooooffffiiiilllleeee(4) manual page.
-
- ttttppppuuuutttt ----TTTT5555666622220000 rrrreeeesssseeeetttt
- Reset an AT&T 5620 terminal, overriding the type of
- terminal in the environmental variable TTTTEEEERRRRMMMM.
-
- ttttppppuuuutttt ccccuuuupppp 0000 0000
- Send the sequence to move the cursor to row 0000, column 0000
- (the upper left corner of the screen, usually known as
- the "home" cursor position).
-
- ttttppppuuuutttt cccclllleeeeaaaarrrr
- Echo the clear-screen sequence for the current
- terminal.
-
- ttttppppuuuutttt ccccoooollllssss
- Print the number of columns for the current terminal.
-
- ttttppppuuuutttt ----TTTT444455550000 ccccoooollllssss
-
-
-
- Page 2 (printed 5/12/99)
-
-
-
-
-
-
- ttttppppuuuutttt((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ttttppppuuuutttt((((1111))))
-
-
-
- Print the number of columns for the 450 terminal.
-
- bbbboooolllldddd====````ttttppppuuuutttt ssssmmmmssssoooo```` ooooffffffffbbbboooolllldddd====````ttttppppuuuutttt rrrrmmmmssssoooo````
- Set the shell variables bbbboooolllldddd, to begin stand-out mode
- sequence, and ooooffffffffbbbboooolllldddd, to end standout mode sequence,
- for the current terminal. This might be followed by a
- prompt: eeeecccchhhhoooo """"$$$${{{{bbbboooolllldddd}}}}PPPPlllleeeeaaaasssseeee ttttyyyyppppeeee iiiinnnn yyyyoooouuuurrrr nnnnaaaammmmeeee::::
- $$$${{{{ooooffffffffbbbboooolllldddd}}}}\\\\cccc""""
-
- ttttppppuuuutttt hhhhcccc
- Set exit code to indicate if the current terminal is a
- hard copy terminal.
-
- ttttppppuuuutttt ccccuuuupppp 22223333 4444
- Send the sequence to move the cursor to row 23, column
- 4.
-
- ttttppppuuuutttt lllloooonnnnggggnnnnaaaammmmeeee
- Print the long name from the tttteeeerrrrmmmmiiiinnnnffffoooo database for the
- type of terminal specified in the environmental
- variable TTTTEEEERRRRMMMM.
-
- ttttppppuuuutttt ----SSSS <<<<<<<<!!!!
- >>>> cccclllleeeeaaaarrrr
- >>>> ccccuuuupppp 11110000 11110000
- >>>> bbbboooolllldddd
- >>>> !!!!
-
- This example shows tput processing several capabilities
- in one invocation. This example clears the screen,
- moves the cursor to position 10, 10 and turns on bold
- (extra bright) mode. The list is terminated by an
- exclamation mark (!!!!) on a line by itself.
-
- FFFFIIIILLLLEEEESSSS
- @@@@DDDDAAAATTTTAAAADDDDIIIIRRRR@@@@////tttteeeerrrrmmmmiiiinnnnffffoooo
- compiled terminal description database
-
- ////uuuussssrrrr////iiiinnnncccclllluuuuddddeeee////ccccuuuurrrrsssseeeessss....hhhh
- ccccuuuurrrrsssseeeessss(3X) header file
-
- ////uuuussssrrrr////iiiinnnncccclllluuuuddddeeee////tttteeeerrrrmmmm....hhhh
- tttteeeerrrrmmmmiiiinnnnffffoooo header file
-
- @@@@DDDDAAAATTTTAAAADDDDIIIIRRRR@@@@////ttttaaaabbbbsssseeeetttt////****
- tab settings for some terminals, in a format
- appropriate to be output to the terminal (escape
- sequences that set margins and tabs); for more
- information, see the "Tabs and Initialization" section
- of tttteeeerrrrmmmmiiiinnnnffffoooo(4)
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
-
-
-
- PPPPaaaaggggeeee 3333 ((((pppprrrriiiinnnntttteeeedddd 5555////11112222////99999999))))
-
-
-
-
-
-
- ttttppppuuuutttt((((1111)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ttttppppuuuutttt((((1111))))
-
-
-
- cccclllleeeeaaaarrrr(1), ssssttttttttyyyy(1), ttttaaaabbbbssss(5). pppprrrrooooffffiiiilllleeee(5), tttteeeerrrrmmmmiiiinnnnffffoooo(4) in the
- _S_y_s_t_e_m _A_d_m_i_n_i_s_t_r_a_t_o_r'_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l. Chapter 10 of the
- _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e.
-
- EEEEXXXXIIIITTTT CCCCOOOODDDDEEEESSSS
- If _c_a_p_n_a_m_e is of type boolean, a value of 0000 is set for TRUE
- and 1111 for FALSE unless the ----SSSS option is used.
-
- If _c_a_p_n_a_m_e is of type string, a value of 0000 is set if the
- _c_a_p_n_a_m_e is defined for this terminal _t_y_p_e (the value of
- _c_a_p_n_a_m_e is returned on standard output); a value of 1111 is set
- if _c_a_p_n_a_m_e is not defined for this terminal _t_y_p_e (a null
- value is returned on standard output).
-
- If _c_a_p_n_a_m_e is of type boolean or string and the ----SSSS option is
- used, a value of 0000 is returned to indicate that all lines
- were successful. No indication of which line failed can be
- given so exit code 1111 will never appear. Exit codes 2222, 3333,
- and 4444 retain their usual interpretation.
-
- If _c_a_p_n_a_m_e is of type integer, a value of 0000 is always set,
- whether or not _c_a_p_n_a_m_e is defined for this terminal _t_y_p_e.
- To determine if _c_a_p_n_a_m_e is defined for this terminal _t_y_p_e,
- the user must test the value of standard output. A value of
- ----1111 means that _c_a_p_n_a_m_e is not defined for this terminal _t_y_p_e.
-
- Any other exit code indicates an error; see the DIAGNOSTICS
- section.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- ttttppppuuuutttt prints the following error messages and sets the
- corresponding exit codes.
-
- exit code error message
- 0000 (_c_a_p_n_a_m_e is a numeric variable that is not specified in the
- tttteeeerrrrmmmmiiiinnnnffffoooo(5) database for this terminal type, e.g.
- ttttppppuuuutttt ----TTTT444455550000 lllliiiinnnneeeessss and ttttppppuuuutttt ----TTTT2222666622221111 xxxxmmmmcccc)
- 1111 no error message is printed, see the EEEEXXXXIIIITTTT CCCCOOOODDDDEEEESSSS section.
- 2222 usage error
- 3333 unknown terminal _t_y_p_e or no tttteeeerrrrmmmmiiiinnnnffffoooo database
- 4444 unknown tttteeeerrrrmmmmiiiinnnnffffoooo capability _c_a_p_n_a_m_e
-
- PPPPOOOORRRRTTTTAAAABBBBIIIILLLLIIIITTTTYYYY
- The lllloooonnnnggggnnnnaaaammmmeeee and ----SSSS options, and the parameter-substitution
- features used in the ccccuuuupppp example, are not supported in BSD
- curses or in AT&T/USL curses before SVr4.
-
-
-
-
-
-
-
-
-
- Page 4 (printed 5/12/99)
-
-
-
-